
public class Manager extends Employee {
    private String level;  // 级别

    public Manager(String name, String address, String ID, double wages, int age, String level) {
        super(name, address, ID, wages, age);
        this.level = level;
    }

    public void add() {
        double d = super.getWages();
        super.setWages(d * 1.1);  // 涨薪10%
    }

    @Override
    public void add(String position) { // 实现抽象方法
        double d = super.getWages();
        super.setWages(d * 1.2);  // 涨薪20%
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
